Removed len1 and len2 from the parameters of hasBadWindow and added documentation to the function.
Removed skipLowComplexity