Learned the basics of kd-tree

It seems that this would be the algorithm that I can use to improve snapping feature ⚓️