code: function euclideanDistance(p, q) {
      // Returns the squared Euclidean distance between p and q.
      var dx = q[0] - p[0];
      var dy = q[1] - p[1];
  
      return dx * dx + dy * dy;
    }
docs: /*
  Internal: used to determine euclidean distance between two points