Wrote a rudimentary implementation of tree data structure. Not yet tested