Created and completed the BinaryHeap along with the PriorityQueue interface.