added 2D inverse
added 2D inverse