Amazon posts $3.2 billion profit, a result of cost cutting measures-layoffs