Implementation of Gauss Elimination