Synaptic module for Neural turing machines