change some code on rfalgo and add odds example