SEARCH FRICTIONS ON PRODUCT AND LABOR MARKETS: MONEY IN THE MATCHING FUNCTION