xy2unit function

Scales locations to the unit hypercube for use in spectral GP