A naive version of Gauss elimination