Code

* convolve matrix code refactoring