ATP Finals: Murray edges Nishikori in marathon match