Adding modified Hungarian algorithm