Add levelsmap
Merge pull request #33 from JuliaStats/jmw/indexmap

[RFC] Add levelsmap