Make sure nm_memory.h is installed
Move internal parts of nmatrix.h to ruby_nmatrix.h

The internal parts do not need to be exposed to dependent gems, and moving them
avoids problems when nmatrix.h is processed by a C compiler.