TI-DBscan with variable distance