Every person who shall erect in a city or town any building with brick shall have liberty to set half his partition wall on his next neighbor’s ground, providing he leave a toothing in the corner of such wall for his neighbor to adjoin unto.