Barnes helps No. 8 UNC rally past Miami 73-64