updated ruby modular to use nmatrix, initial commit