CRC-32 checksum implemented in pure Lua