For the code in the previous message, you just move those two ball back to the point where the collision occurred.
(The above solution is an approximation, it is not an exact solution. But it should work fine when the velocity*dt << size of the ball).
I do not know what can I help.