Basic implementation to show the use of heap sort algorithm in finding the min and max values in an unsorted array