Implement Priority Queue Using Binary Search Time