Chile's Cristian Garin beat Spain's Pedro Martinez in five-set epic at the Australian Open, coming through 6-7, 7-6, 2-6, 6-2, 6-2.