implemented adagrad

a simple addition that makes a huge change