Iterative Linear System Solver - Coding problem | OneNoughtOne