Edited notes on map-reduce