Finishing adding endian.cpp to the tool box
Figured out that the code does not work in c++