Add weighted hungarian (km) algorithm.