Moved Indexing to kompile

Moved the creation of rule index table to happen at kompile time