restructured assembly of coefficient matrix and preconditinoing method in order to solve memory problem