Data structures and algorithms implemented in Ruby