wrote code for gaussian elimination and gauss-jordan method