Updated implementation of Quicksort and implemented Introsort. Added
tests for sorted and reverse-sorted arrays.