This is very old diploma code from 2012. PDF describing the problem and solution are discussed in FIT_8202_Fedotov_Diploma.pdf in Russian.