The pair shared a 237-run fifth-wicket stand to help South Africa post the highest score at St George's Park