fix gradients for more accepted input matrix size, added tv_norm methods
TODO test both grads and tv norm