scala-idiomatic CategoryDataset creation

A ToCategoryDataset converter is used to convert the
Seq[(String,(String,Double))] of the for loops for both histograms. The
rest is basically un-nesting the for loops to yield the data and dead
code elimination.