clean up template
add stl containers headers to template
TopCoder Single Round Match 586