max_mrs function

Apply the max operator to an MRS dataset.