Correct the image path,finally the program works
add more comments on xfrom and kd-tree and main