heapSort and cmd line arg processing