From Libertinism to Marital Commitment: The Economics of Marital Search with Heterogeneous Agents