Barnes & Noble is going private after bruising battle with Amazon