various kd-trees and a vantage-point tree, original stuff by Steven Skienna and Michael Murphy; find the original source link in the README