remapstat function

Remaps source points to target cells