Implementation of fast N-2 contingency analysis algorithm based on work of prof. Turitsyn MIT group.