Cleaned up quick_sort a bit