added makeheap and findmin functions for binomial