Minified averageArray()