Feature/adding inv functions

These commits add inv, inv_sqrt, inv_square functions and specific cases using pow (i.e. pow(x, -1)).