Macy’s earnings top estimates, to cut 100 jobs in restructuring; shares rise