kd tree implementation and test data