fixed memory allocation
Merge branch 'master' of https://github.com/ibaned/matmul
memory allocation fixed