Fixing initialization and accidental return in _.each
Fixing missed size change going from 2d array to 1d. passing it in everywhere for speed, Sqrt not desired