Find Maximum And Minimum Element In A Vector