find smallest number in array without sorting