. . "(j)enabling a court-martial, in such cases and to such extent as may be prescribed by the rules, to amend a charge which is being tried by the court;" . .