quicksort implementation in Python 3