adding heap_sort and print method