Basic Quicksort implementation in Python