calculating kendall