Made rms() also work with row vectors