Multip : A Multi Purpose simulation Monte Carlo algorithm for two- and three-body reaction kinematics