init_gauss: avoid 1024 times of realloc, as suggested by Chris. clarified some magic numbers.
revert 83563637: it doesn't see thread-safe.