North American stock markets close higher