shell.c major time performance increase, and rehaul of mallocing structure