Heapsort succeeds sometimes, fails others.
//Renamed sorter.cpp to main.cpp