Sub-Riemannian heat kernels and mean curvature flow of graphs