Proximity measures for rank join