Major refactoring of Data Store; also switch to MathNet lib for stats