add algorithm and cmath head files to template