MST first commit, fixed bug in minheap creation