New Jersey city holds first housing lottery with homes selling for $1