Effect of selection on ancestry: an exactly soluble case and its phenomenological generalization.