Separated nmatrix C code out from the C++ code.
Added file header
Moved Ruby C functions in nmatrix.cpp to ruby_nmatrix.c, fixed bug with
casting.