Java Priority Queue Remove Time Complexity Of Kruskals Algorithm