%KDTREECHECK  Check whether the KDTree toolbox is in the path

function kdtreecheck
	
	if exist('kd_buildtree','file') ~= 2
		error([newline 'The KDTree package is not found. Download and install it from' ...
			newline 'http://www.mathworks.com/matlabcentral/fileexchange/26649-kdtree-implementation-in-matlab/'])
	end
		