finally fixed detecting of islands with bounding sample region against kdTree...