CMOS implementation of an extended CNN cell to deal with complex dynamics