first version. the format of elements is (int, int). Simplest hash function, just %.