Macy’s beats earnings estimates, as turnaround plan shows early progress