2D Material Integrates Digital Logic and Memory Into One Chip