hilbertMapping function

Map High Dimensional Coordinates to Hilbert Index and back