minor corrections

changed tree in main to tree*, changed sprintf in printTree to printf.