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

fix names of template parameters to describe the objects they represent