Added machine learning for result grouping

_added closed all thread from path planner thread
_added machine learning thread for result grouping / clustering
_added pipe for synching between these 2 thread.