update c++ template code, include more header files

queue and map are used frequently in TopCoder's algorithm competition，so I think it's better to include their header file in default template.