Quick sort implementation in Python.