New York stock exchange closes Thursday higher