[+] Node creation is now an instance method, cost is now computed when creating the nodes