quick sort using ruby