local maxima and minima class 12