Added sequence class. Need to straighten out the details, but the algorithms have been debugged]