Algorithmic Construction of Acyclic Partial Matchings for Multidimensional Persistence