Text this: Pattern matching oriented photodetector image sensor with programmable interconnection between pixels