initial implementation of preferential attachment, expected bugs and work ahead