SOM-Based System for Sequence Chunking and Planning