Description: Implement the logic for a node to start the election process when it suspects the leader has failed or encounters an election timeout.
Tasks:
[x] Add a method to the Node class to initiate the election process.
[x] Update the node's attributes (currentTerm, currentRole, votedFor, etc.) accordingly.
[x] Implement the message-sending logic to request votes from other nodes.
Description: Implement the logic for a node to start the election process when it suspects the leader has failed or encounters an election timeout. Tasks:
Node
class to initiate the election process.