Rite Aid reports first profit in five years