A generic lazy kdtree (not generic yet).