First commit for Single-index.