Better architecture

Just keep using static allocation other than STL containers.