Implementing ttls
TTLs working. Added degree to nodes.