Ruby implementation of fundamental data structures and algorithms