Heterogeneous Integration of Molecules in Nonvolatile Memory