Implemented heapify, deletemin, building the heap and inserting in heap