Solution of system of linear equations