tiny fix on 2011-12-05_ZigZag_Conversion.cpp, and add template.cpp file