Yes, of course I've used some theoretical material from wiki. And also this source http://www.stanford.edu/class/cs106l/handouts/assignment-3-kdtree.pdf   was good for implementing kdtree.