Update main.cpp

Reduce pool size for global variables.