Canada's annual inflation slows to 3.1% in October from 3.8% in September