refactored, added matlab code, started to work on normalized convolution implementation