add leader flag in torus struct
update utils.h
update socket.c
update test.c
add heartbeat feature
update torus_node.c