Barnes & Noble posts profit, may yet split up company