A&P emerges from bankruptcy