first attempt at constrined version of abs(x)