add common parent of any tree node