Katz's middle convolution algorithm