Fixing the memory usage error.

One should not free GLPK datastructures at GC time. This seems to
confuse GLPK (perhaps due to some internal bug). It is better to
clean up right after use.

(oh, and a lot of tabs->spaces have been fixed by my emacs whitespace-cleanup)