How To Determine Relative Minimum And Maximum