added <numeric> header into template/main.cpp
added solution to UVa 624-CD