Wozniacki wins her first Grand Slam title in three-set thriller.