it is a basic code of implementation of binary search tree i am encountering the problem ie when i try to delete the node in the tree after using the function for traversing