Charj: implementing reductions