implement normalize for nmatrix
analysis of other gems