added prediction in the SOM code