use unsigned int in AttractPairList.__getitem__