twkm function

Two-level variable weighting clustering