Gemfile: remove unused dependencies

Also make nmatrix a runtime dependency