Playing with kdtrees in Golang from http://web.stanford.edu/class/cs106l/handouts/assignment-3-kdtree.pdf