Dougie Hamilton scored two goal and the Carolina Hurricanes kept pace in the race for the playoffs by beating the Toronto Maple Leafs 4-1.