Implementation of BatchSVM, introduced in Vural, Volkan, et al. "Using local dependencies within batches to improve large margin classifiers." Journal of machine learning research 10.Feb (2009): 183-206.