naive gaussian elimination