Code is done

It appears to work OK, although to be completely sure some unit
tests will be needed.

	modified:   relation.cpp
	modified:   tests/testTotalPopulation.cpp
	modified:   totalPopulation.cpp