Trots en trög inledning på sista rundan höll Rory McIlroy undan och vann The Masters på -12 efter en dramatisk avslutning.