Use new c++11 way of doing checksum