2-way dict with convenient slice syntax: d[65] = 'A' -> d[:'A'] == 65