Kamil Stoch produced a fine second jump to edge out Gregor Schlierenzauer in the FIS Ski Jumping World Cup in Val di Fiemme, Italy.