Add code for heterogenous distance of position distance space. Gradient from border to center to border is 1 to 2 to 1, and another case 2 to 1 to 2