Ruby API implementing most useful structures and algorithms