Added squareSort to sort array of points based on distance from a given point; Made progress on teasing out connectSqs from previous attempt to a better method.