Chacksum calculation for Nifs
Refactor
Adding more Nif checksum tests
Refactor checksum calculation