The Microstructures of Housing Markets