Updated DoubleMatrixDataset, Speed up and added test for correlation