New algorithm based on sparse similarities.