Ruby answers to Coursera Princeton Algorithms I