Roger Federer kept alive his hopes of reaching the semi-finals of the ATP World Tour Finals with a straight sets victory over Richard Gasquet.