change residual norm from l2 to lp(p can be infinity).