implemented hash list for kevin bacon number