Formatting
Added comment about freeing memory
Added tree classes and tests