MacKinnon, Barrie helps Avs beat Flames 5-2-media-6