Index to position mapping.
Merge pull request #1 from wbyoung/mapping

Index to position mapping.