added batching and SGDClassifier