Implement Priority Queue Using Binary Search In Java