Compact CMOS implementation of a low-power, current-mode programmable Cellular Neural Network