Goldman Sachs boosted by surging markets in third quarter