An algorithm to solve the discrete HJI equation arising in the L2 gain optimization problem | Synapse