Microsoft plans to lay off 10,000 employees