Algorithm To Find Largest And Smallest Number In An Array In C