made quicksort2 more efficient
deleted cast
deleted unnecessary rows
added Complexity