Ruby Data Processing: Using Map, Reduce, and Select