added case for the two desired nodes being equali, and not existing in
the tree