map reduce in C++/linus for OS design