allow Nx1 and 1xN matrices #30
fixed matrix multiplication for NxM matrices #30