Adapted old overlap algorithm
Now using google sparse hash