basic quicksort exercise in python