Reduction framework for twitter data using Scala