finally implemented quicksort correctly
implemented algorithms 2-3 successfully
changed data in main
cleaned up the code a bit