Add new cases and improve ALLREDUCE
