[Edit] Added heapSort algorithm