Hearts returned to winning ways with an emphatic 4-0 win over Dundee at Tynecastle to move nine points clear at the top of the William Hill Premiership.