Added test scheme.
More work on SGD classifier.