math – Algorithm for finding similar images – Stack Overflow