Binary tree - front and rear traversal