Solving lottery tickets pattern.
Adding some improvements.
Improving Windows compatibility