Max-Product for Maximum Weight Matching: Convergence, Correctness, and LP Duality