Adding solutions to problems 1-3

Commit solutions for problems 1-3.

Also adding a new helper.cpp file for common shared functions. Currently
only implements a is_prime() function, but will contain any useful
functions that can be shared among problems.