Using hash_map to speed it up. Also we have now ints and floats, but not longs and doubles.