Algebraic structures of string field theory