added tensor and fourdtensor adagrad