add last_common_parent.cpp