Use lists instead of hash tables and vectors.