Efficient way to compute pair wise difference among the 1d numpy array