Wrote version 1 of the Tree data structure