Optical associative processors