SRM635 tree diameter problem.