Operations available on BST are:
1. Insert an element
2. Insert sorted array of elements
3. Search an element
4. Delete an element
5. Minimum element in tree
6. Maximum element in tree
7. InOrder
8. PreOrder
9. PostOrder
10. Exit
************************************************
Sorted array elements 2 5 7 9 10 12 15 18 23 35 are inserted into the tree.
************************************************
The minimum element in the BST is: 2
************************************************
The maximum element in the BST is: 35
************************************************
InOrder: 2 5 7 9 10 12 15 18 23 35
************************************************
PreOrder: 10 5 2 7 9 18 12 15 23 35
************************************************
PostOrder: 2 9 7 5 15 12 35 23 18 10
************************************************
Element 5 is inserted into the tree.
************************************************
Element 3 is inserted into the tree.
************************************************
Element 2 is inserted into the tree.
************************************************
Element 1 is inserted into the tree.
************************************************
Element 4 is inserted into the tree.
************************************************
Element 9 is inserted into the tree.
************************************************
Element 7 is inserted into the tree.
************************************************
Element 6 is inserted into the tree.
************************************************
Element 8 is inserted into the tree.
************************************************
Element 12 is inserted into the tree.
************************************************
Element 11 is inserted into the tree.
************************************************
Element 10 is inserted into the tree.
************************************************
Element 13 is inserted into the tree.
************************************************
Element 23 found in the tree.
************************************************
Element 8 found in the tree.
************************************************
InOrder: 1 2 2 3 4 5 5 6 7 7 8 9 9 10 10 11 12 12 13 15 18 23 35
************************************************
PreOrder: 10 5 2 1 3 2 4 7 5 6 9 7 8 9 18 12 11 10 15 12 13 23 35
************************************************
PostOrder: 1 2 4 3 2 6 5 8 7 9 9 7 5 10 11 13 12 15 12 35 23 18 10
************************************************
Element 4 is deleted
************************************************
Element 5 is deleted
************************************************
Element 42 not found for delete.
************************************************
The minimum element in the BST is: 1
************************************************
The maximum element in the BST is: 35
************************************************
InOrder: 1 2 2 3 5 6 7 7 8 9 9 10 10 11 12 12 13 15 18 23 35
************************************************
PreOrder: 10 5 2 1 3 2 7 6 9 7 8 9 18 12 11 10 15 12 13 23 35
************************************************
PostOrder: 1 2 3 2 6 8 7 9 9 7 5 10 11 13 12 15 12 35 23 18 10
************************************************