Harry Lime in The Third Man and Phyllis Dietrichson in Double Indemnity are among the most intelligent characters in classic movies.