Vengerian algorithm to solve designition problem