Inversions - Added a quadratic N^2 solution