a duplex is a type of apartment building