Modified MaxPQ.java and MinPQ.java