Peirce's Semiotics and General Intelligence