compared cProfiles of my sol with Norvigs... similar times his is more elegant tho