Create a distance metric that will measure the distance between frames based on differences in their contact maps.