Put matrices into array (segmentation fault)
get rid of the segementation fault
Get rid of the global variable N
Add comment about implementation of matrices in README