Complex systems and cognitive processes