Murty's Algorithm for m-best assignments; Implementation inspired by Miller's pseudocode (see code)