Finding Maximum And Minimum Points