Optimization of the newNormal function: using an unboxed array.