Code supplemental to Norvig's AI Class (no homework answers!)