now need to add mutexes and stopping of solver. Other is made well
added Mutexes
solve task using big number arithmetics, now find all input files in directory