Add reduce.  Needs a unit test for reduce operation.