Molecules for memory, logic and amplification