project cleanup and small speed bump

1. speedup added to detectColors method
2. if pixel is equally distant to at least 2 centroids, it's not counted
3. project folder cleaned