Detection And Approximation Of Function Of Two Variables In High Dimensions