added heap sort to Sorter