From where did a degree come in a madrasa