add 372D.cpp
modified LCA template