explain new local maximum algorithm