Find the velocity of a ball after a head-on elastic collision