Added merge_samples function, extra samples are added as extra chains.