Create checkEndianess