Basic operation of binary tree and three kinds of traversal