storing array in little-endian