Added CosineSimilarity.to_string
Fixed MeasureStat.finalize - f-score = 0 defined for 0 precision and 0 recall (fixes #28)