Collision finder

Program, helping in two questions in Problem Set 3