Bitcoin, that nebulous digital currency that trades in cyberspace and is “mined” by code-cracking computers, emerged as a better bet this year than every major foreign-exchange trade, stock index and commodity contract. The electronic coin that trades and is regulated like oil and gold surged 79 percent since the start of 2016 to $778, its highest level since early 2014, data compiled by Bloomberg shows.