Circuit Simulation Methods and Algorithms