Short- and long-term memory of moving amoeboid cells.