Influence of the Linear Layer on the Algebraic Degree in SP-Networks