added code to PQueue.java