Multiplexing and demultiplexing logic functions for computing signal processing tasks in synthetic biology.