Ruby implementation of some well-know data structures.