Neuromorphic Floating-gate Memory Based on 2D Materials