added static methods for CRAI parsing and building in-memory index