What is the purpose of including the following clauses in the U.S. Constitution: habeas corpus and prohibition of bills of attainder and ex post facto laws?

A. to give all the power the federal government to create order in the US

B. to protect individual liberties and limit power of the federal government

C. to give complete protection and authority to US citizens, regardless of position or title

D. to allow the federal government the opportunity to charge criminals for crimes of the past

B. to protect individual liberties and limit power of the federal government