Algorithm design, software simulation and mathematical modelling of subthreshold leakage current in CMOS circuits. (21st November 2019)