UNC beats Providence 79-77