Here's another sorting algorithm called Heap sort.Its a little bit tougher than the remaining sort to implement .But we assure you that TJ would provide you with the most simplified programs.Let's consider an example first then we would move to the program.