Liberty buys Barnes and Noble