Computes copula using ranks and subsampling