A new version of compute_dp_ranks, orders of magnitude faster.