Node(threshold: Int, children: List<CompositeKey>, weights: List<Int>)
Represents a node in the key tree. It maintains a list of child nodes – sub-trees, and associated weights carried by child node signatures.
The threshold specifies the minimum total weight required (in the simple case – the minimum number of child signatures required) to satisfy the sub-tree rooted at this node.