Removed random accesss for quicksort, added test.