largest and smallest in an array