Blackberry Beats Estimates as Cost-Cutting Plan Fuels Turnaround.