Got minheap working