BayesScore: faster count aggregation through the magic of linear algebra

In addition to changing the indexed data matrix to column-major by graph node, the whole logBayesScore pipeline could/should be refactored as a sum of components (by graph node) to facilitate writing learning algorithms.