init implementation

implement sum root to leaf value