Initial Fault Tree preprocessing by combining the same type gates.
Further optimization of application of Boolean algebra.

The tree is compacted by joining gates with the same type.
The performance optimization for tree expansion is around 4 times.