Algorithm To Find Largest And Smallest Of N Numbers