NaN as default initializer for an array gives too large array sizes with R 3.??
changing NaN -> 0 in array( .... )