avg of numbers in array