added a ruby tree class with structs for Tree and Node