Added alternate method of computing histograms by parts, instead of default mapreduce (flatMap and reduceByKey).