NNLayer: added element-wise exponentiation

to be used for adagrad training