Hearts overcame Beni Baningime's early red card to pull off a stunning 2-0 win over St Mirren and restore their six-point cushion at the top of the William Hill Premiership.