vector.hh and vector.cc implemented with unordered_map instead of vector (100x faster in some tests)