drastically improved homology filter speed, played with set similarity code