Jason Cain's double-double and Mamadi Diane's career high lead UVA to a thrilling victory over Maryland.