test swapping array when passing to sub
quick sort