Solving Linear System using Matrix Methods