[ymeng] Fix algorithm time complexity of heap sort