use batch_size instead of n_batch,
fixes for mini-batch updates
add mini-batch to perceptron and passive aggressive classifiers
adapt examples