added M/R example that reads and writes data in sequence format