Computing the Nucleolus of Matching and b-Matching Games