VX(Li): Add a ctor to the search priority queue which accepts a distance function.