Quicksort in Python version 2 - return sorted array instead of being destructive