Before revision:  Inspired by the geometric method {\em net tree}, we propose a novel " data-dependent " algorithm to solve this problem efficiently.
After revision:  Inspired by the geometric method {\em net tree}, we propose a novel " data-dependent '' algorithm to avoid directly computing the EMD between A and B, so as to solve this query problem more efficiently.