All-pairs similarity via DIMSUM