Added first part of the algorithm vsechna_policka.