Find a new ancestor for each parent recursion