cleaning up.
Added unsafe matrix multiplication in release mode.