dsquare function

Distance-squared from a number of points to a number of sources