Very Very Very simpel implementation of the gauss algorithm