Replaced maps with unordered maps
Replaced tuples with pairs