Algorithm for finding image duplicates and close matches. Optimized for speed to compare large amounts of images