Implementing algorithm for finding lowest common ancestor in the BST.