Berkshire Hathaway’s Precision Castparts unit has made a comeback after $10bn writedown