Quick sort

Implementation of quick sort, with tail recursion.
quick sort and clean up