Finding Largest And Smallest Element In Array