added main file containing the class KdInterpol and a test case