Solve Six Degrees of Kevin Bacon