Added heap sort for the leaf nodes in MPI merge sort