update reduceBench to new programming style