removing unnecessary code from quick sort
binary heaps and heap sort