How To Identify Local Min And Max On A Graph