Finished Heap class.