The Hungarian method for the assignment problem