recursive way to deal with Binary tree traverse