Solution of complex reactions in polymath solver