Liverpool go top of table with late win over 10-player Palace