A computational model of serial and parallel processing in visual search