Improve implementation of DMux4Way and DMux8Way