modified PriorityQueue getParentOf