calculating kendall2