fixed Gauss method; LSQ works