xkcd1313: not yet working implementation of norvig's solution to the xkcd problem