Cython implementation of Python's collections.OrderedDict