adding mds index lookup

m3dc1 is asking for index-based lookup,
and the inverse lookup function was not being
used so I renamed it for consistency.
This requires a defragmented (reordered) mesh.