BMW has confirmed it will quit Formula 1 at the end of the 2009 season