Fixed quick sort in place