Optimaze work.
Add probabity sum check.
Merge branch 'master' of
https://github.com/VerkhovtsovPavel/MiAPR-Lab3.git

Conflicts:
	src/main/Main.java

Final version