Quick Sort implementation in ruby!