uncomment lines at top to test with large numbers
Main sorting function