added logic to mirror a BST