Added the class to compute the distances between a new picture and the ones in the database.