added riack and jannson code as well as corresponding unit tests