Completed the implementation of MinIndexMap