Add MPS writer

Add MPS writer `mps.Writer` and tests.