Suddenly profitable GM has filed for an initial public offering of $10 to $20 billion.