chunk indexer class and reduction of complexity in segmenter and iframe index