Added union dataset token, in order to implement distribution training with ANNs. Added test for replacement and distribution training modes. Debugged training modes