Linear system solver with iterative methods