Pakistan appoints top judge