DialogManager, distance function

Introduction of DialogManager interface
Distance function for numerical attributes
More work on dialog statements