Slightly improved equals() and added annotations to Centroid's update() method.