Approximation algorithms for the earth mover's distance under transformations using reference points