public Node findLCA(Node root, Node element1, Node element2) {
        if (root != null) {

            boolean isContains = (isContains(root.left, element1) && isContains(root.right, element2)) || (isContains(root.left, element2) && isContains(root.right, element1));
            if (isContains)
                return root;
            else {
                Node one = findLCA(root.left, element1, element2);
                Node two = findLCA(root.right, element1, element2);
                if (one != null)
                    return one;
                if (two != null)
                    return two;
            }

        }

        return null;
    }