Find The Local Maximum And Minimum Values