endian: add support for little-endian operations
tests: add test for endian operations
Merge branch 'endianness' into 'master'