Added rf-algo.js