Compacted the quicksort function, and replaced some operators with newer syntax.