Restructure as a Julia package.
Add test matrices.
Make rb a proper module.
Update tests.