Defines the classes to calcualte the distance based data instances
scorer.