fastWKendall: an efficient algorithm for weighted Kendall correlation