poj 1165 tree centroid