Created DMMethod domain class and its subclass KnnMethod.