Cleanup the code and refactor gate joining and constant gate processing
in the indexed fault tree class.
Add detection of local minimality for OR gate upon passing inputs
to AND gate.