Rebuild Insert method in BST for using iterative method