damn, my heap sort does not work after element insertion.