Analysis and development of digital circuits optimization algorithms in terms of speed and power dissipation