Added a simple tree class.