Plants are capable of high levels of cognition. So are swarms of insects.