added a Fold.fromReducer method for the indexing