add coarse_reduce function + tests