export MZMapReduce

- add “inline” to fix warning.
- wrap function as class, useful?
- add unit test.