fix beta estimation for vectors
Merge branch 'master' of https://github.com/ellchow/moRe