POJ_1330_Nearest Common Ancestors