add map reduce to src/lib; renove from dev