Foundations of Genetic Circuits and Biological Regulatory Networks