Speed up constructor with pad_image and calculateStepK by only summing over the inner Ninitial square.
(#238)