Finds the velocities of two bodies after a head-on collision, by combining conservation of momentum with the definition of the coefficient of restitution. A value of 1 is a perfectly elastic collision, and 0 means the two move off together.