Added a pdist-like approach to save memory