Daniel Ricciardo captures checkered flag in Montreal