implemented SequenceLength operator
implemented SequenceIndex expression
moved stuff around