New data structure to replace binheap