When recalculating centroid in a cluster - copying old centroid instead of creating new one and switching values around.
Fixed a bug where the parser would keep adding the same line over and over.
Made setValue() return a boolean if the addition was successful.