adding all the methods required the BytesRef class and tests. Adding ICharSequence even though it is possible to use IEnumerable<char> instead.