Implemented basic reduction arrfunc