Initial commit of checksum.cpp

Chap 2.3