Create endian.cc

Convert to and fro between network byte mode and little endian mode