Initial implementation of a min heap.