kendall's W using c++