update heap
reconstruct heapify method.
delete funcs unused.