Short and long-term learning process in the swimming activity of the leech