Cuda version now does attraction between vertices.

This implementation used a full scan of the edges array.