add MaxContinousTree