Added operators that can add forward/backward transitions to a sequence.
The decision can be made in a dynamic fashion if needed.  Also added a
test that verifies this functionality.