Implemented printList, getMin, leftChildIndex, rightChildIndex, and heapify functions