a quick Adagrad implementation, inspired to gdmtrain.jl

It requires the gradient ∇ to implement .* (because of the regularizer sqrt(∇ .* ∇));
should the type NNLayer have a .* method ?