Quicksort Implementation in Python