Use a Map for lag and first dimension coordinates

For 2D and 3D find shifts, use a Map with Integer key and int[]
value. The Integer key is the trace index and the int[] array
should contain flattened lag,i1 coordinate pairs. Added a utility
class for creating this Map.