added algorithm to test the endianness
added algorithm that test endianness