Recursive algorithms for calculating the scattering from N strips or patches