changed a little thing
added more fileinput and modified toS of kmeans