Replaced by DenseMap instead of MapVector(the order is not important, just lookup is used) + reduced number of lookups.