Starting to implement the cache

 - added a map codepoint<->index in the cache