This is the endianness checker from the Moscow ML project. Explain, how it works.