Algorithms for modern circuit simulation