add decode with Gauss-Jordan elimination