Full solution to the part14 Asteroid MOOC exercise.