injective function 2 variables