finished adding tree class, main method code left
added code for building a tree, code to find the final answer left
finished