Fast checksum calculcation

Added algorithm for fast checksum calculation including test cases. This should speedup the checksum calculation be the factor 10.