inline sub2ind in statistics function for BayesScore
Merge pull request #5 from bakkot/inline_sub2ind

inline sub2ind in statistics function for BayesScore