Distortions in Genealogies Due to Purifying Selection and Recombination