Fixed bug in CRC32 code and added byte flipping functions