Does "Within several centuries, the development of Muslim educational institutions such as the madrasah and masjid eventually introduced such activities to provincial towns and dispersed them across the Islamic legal schools and Sufi orders." contain the correct answer to "How long did it take for madaris to spread to smaller cities and towns?"
yes