Vertex class implementation and LongWritable as a value to vertex messages