CS 540 Class Project: Using C++ templates for sum