Who is an elected or appointed official that presides over a court of law and who is authorized to hear and sometimes to decide cases and to conduct trials?