a simple mapreduce interface, with a single-machine implementation