The project was completely converted to an object-oriented approach. By now only the initial stage of the algorithm is implemented.