Rite Aid beats analysts' estimates; positive comps across the board