The Ecological Rationality of Heuristics and Their Building Blocks