fixed KDTreeCapable<T> for T=double