Bitcoin tops $50,000 for first time since mid-May