updated ruby modular to use nmatrix, initial commit
Merge pull request #1516 from pickle27/nmatrix

updated ruby modular to use nmatrix