printTree prints the root as well