Playing with optimization idea for Hungarian algorithm