InvertedIndex: Added prints to locate memory problem in distributed mode runs
PageRank: Added VertexOutputWriter
KMeans: Added prints to locate write problem in distributed mode runs