Moved classes into client package
Added KDTree implementation