Bayesian inference for bivariate ranks