Add index_function infrastructure (closes #27)

Merge request reports