Fixes calculations changing capacity array

- Instead a new array is made with that array's values and *that*
is changed.
No time for message! Working! Thing!
Merge pull request #25 from knod/master

Padding array processing improved, matrix and padding array can be decreased