Find the average of the array.