use knight's algorithm to compute kendall's tau