Why Tech Companies do Layoffs (and how to benefit from it)