added some convenience methods to Matrix

Added exponential features generator for test data.

Tweeked up the PerceptronSandbox and brought the LogisticRegressionSandbox in line with datasource api