ADT's and Algorithms for ruby