Added SampleSet.extend() as well as new tests.