added startserver.sh for building and starting c++ server
added allocation logic from hell. works (tests are green now)