Compute an actor's Bacon number under the principles of Six degrees of Kevin Bacon.