Added min and max heap.