swapped N and M template parameters
fixed matrix-matrix and matrix-vector convertibility and interoperability
added linalg tests