generified kdtree
LinSearch now uses Data.Vector.Generic too