Delta is now a Matrix not a double[] and now solves invertible matrices