Example of map / reduce algorythm