implement algorithm to search a number in a two dimensions array.
Give the preorder and inorder traversal, and rebuild the tree.