Fix bug in the gausseidel function