Bitcoin hits $40,000 after doubling in value in the last month