public void merge(SequenceSet sequenceSet) {
        Sequence node = sequenceSet.getHead();

        while (node != null) {
            add(node);
            node = node.getNext();
        }
    }
@Test
    public void testMerge() {
        SequenceSet set = new SequenceSet();
        set.add(new Sequence(0, 100));

        SequenceSet set2 = new SequenceSet();
        set.add(new Sequence(50, 150));

        set.merge(set2);
        assertEquals(151, set.rangeSize());
        assertEquals(1, set.size());

    }