I want to create something like this:
map<int, iterator> first, second;
Here value of iterator in the first map will point to and entry in second map and the iterator field in the second map will point to the first map.
This is to sort a key and a value corresponding to the key.