Working through Data Structures & Algorithms Book; following along in Java and then implementing in Ruby