How a British market was inspired by the Islamic model of Medina