added iterator code

everything in sequence.h now.  sequence.template and
sequence.template.cpp are not up to date.  will separate out later.