change gauss.c using nested functions