add functions to problem.h
may be finally realisation of testing.h
change some functions and structs in compilation.h and solution.h