Added batch adagrad.