BUG: Cythonized kendall correlation implementation is incorrect
- [x] I have checked that this issue has not already been reported.

- [x] I have confirmed this bug exists on the latest version of pandas.

- [x] (optional) I have confirmed this bug exists on the master branch of pandas.

---


#### Problem description

The Cythonized implementation of Kendall correlation implemented [here](https://github.com/pandas-dev/pandas/pull/39132) has been completely broken in the case of tied values since its original commit.

Scipy (and most other stats pacakges) [implement](https://github.com/scipy/scipy/blob/master/scipy/stats/stats.py#L4717) the [b variant](https://en.wikipedia.org/wiki/Kendall_rank_correlation_coefficient#Tau-b) of Kendall's tau, not the original version. Rank based correlation algorithms absolutely need to handle ties correctly as ordinal data often includes repeated values in some columns.


Even if we wanted to implement the "a variant" of Kendall's tau (which would be a breaking change from the implementation prior to the Cythonization diff), the correct code would disregard ties entirely, whereas the current implementation is including them in its calculations.

It's non-trivial to implement a Cythonized version of the correct code with tie-handling here, and I think that the Cythonized version should be reverted.

#### Code Sample, a copy-pastable example
```
df = pd.DataFrame([[1, 2], [2, 1], [1, 3]])
df[0].corr(df[1],method='kendall') == df.corr(method='kendall')[0][1]
# output
False
```

#### Expected Output

`True`

#### Change to test case that catches this bug

https://github.com/zrait/pandas/commit/94a0eea77bf587e4d502684da6a4ba8c6797ae83 is a simple change to the correlation test case that ensures that one of the columns used has repeated values and fails with the current implementation but not if the Cythonization is reverted.

More generally, I think the float test data should be updated to include duplicates, as a danger of randomly generated float data is the fact that it won't naturally include any duplicates.
