heap sort implementation and bentch marking