added quicksort and counting numbers