Error estimates for a numerical method for an ill-posed Cauchy problem for the heat equation