pow_abs_dist function

Calculates matrix of absolute distances raised to a power