added some methods to MyPriorityQueue