The privilege of the writ of habeas corpus shall not be suspended. No person shall be held to answer for treason, felony or other crime, not cognizable by a justice, unless on presentment or indictment of a grand jury. No bill of attainder, ex post facto law, or law impairing the obligation of a contract, shall be passed.