Roger Federer and Serena Williams both won their first-round singles matches on a day temperatures soared at Wimbledon.