seqinsert and iteminsert methods combined in a new method tarverseDataElemnts. The code duplication for seqinsert and iteminsert is solved.