New York stock exchanges close higher