General changes

Use memcpy function for copying 1-byte sequences in order to improve performance.