An Optimization Network for Matrix Inversion