Find The Local Max And Min