Added NxN formula in ADMM