[strategies][distance] change template parameters' names to reflect
the objects they represent