Blackberry abandons plan to sell company