Yahoo! to lay off thousands of employees