finished implementation of PriorityQueueBST