Best Buy, once left for dead, has rebounded and is holding its own against e-commerce rival Amazon.com.