A scale-independent clustering method with automatic variable selection based on trees