Simple implementation of 6 Degrees of Kevin Bacon