add map/reduce example

/cc @rememberlenny