Adding problem 15, minor refactoring to avoid precision loss, adding copy-constructor for Pair.