Changed chat form chat_nessage object
First implementation of clustering algorithm