Changed code to output vertex data. Also added funtion to get map reduce to get op k similar items for each item vertex.