A Search-Matching Model of the Two-Sided Platforms