Testing refactor and add testing for smart CluDA
Code refactor
Add test to smart clustering
Added smart clustering for KMeans with a margin distance percentage
Added margin distance percentage to documentation
Not use instance variables directly in loop