implementation of Quick sort

http://rosettacode.org/wiki/Sorting_algorithms/Quicksort