title: Calculate the maximum distance between vectors in an array
body: <p>Assume we have an array that holds n vectors. We want to calculate the maximum euclidean distance between those vectors.
  The easiest (naive?) approach would be to iterate the array and for each vector calculate its distance with the all subsequent vectors and then find the maximum.
  This algorithm, however, would grow (n-1)! with respect to the size of the array.</p>
  
  <p>Is there any other more efficient approach to this problem?</p>
  
  <p>Thanks.</p>