added solutions for a bunch of tree problem