Algorithms: Ruby: qSort