Add partitionUsingTheDistance UT

Improve UT formatting
Remove localStorage saving (the url already own the current state of the editor)
Improve style
Add determineNewCentroid UT