A hedge fund managed by veteran investor Bill Miller gained 46% in the first half, thanks partly to the sharp rise in the price of bitcoin during the period.