Matrix.fold = curry(function (f, M) {
  return Matrix.of(M).fold(f)
})