Warren Buffett's Berkshire Hathaway and the private equity firm 3G Capital are set buy ketchup giant Heinz.