added a bunch of solutions of tree problems