refactoring of the CRC calculation
Merge pull request #15 from Fede85/master

refactoring of the CRC calculation