How companies like Microsoft should handle mass layoffs