implemented kneighbor local scale, weightedlocal scale