avl-tree travel function implement.