Implement index of coincidence