setting distance of lazy nodes to -inf