Learning data structures and algorithms, great Ruby practice