Solutions to the Project Euler problems in C++