What was simliar to the english magna cartas habeas corpus