Infinite-dimensional 3-algebra and integrable system