Somerset skipper Marcus Trescothick hailed Nick Compton as a world-class batsman after watching him hit a match-saving century at Durham.