Burger King plans to buy Canadian chain Tim Hortons