For a two-dimensional cartesian coordinate system $(x,y)$ describing two particles of unit mass, one frequently encounters a transformation into center-of-mass and relative coordinates $(R,r)$ defined by
$$ \begin{pmatrix}R\\r\end{pmatrix} = \begin{pmatrix}1&1\\1&-1\end{pmatrix} \begin{pmatrix}x\\y\end{pmatrix} $$
How can this concept reasonably be extended to higher dimensions?
Here are my thoughts. In principle, the problem can be approached quite directly as the following: Find a unitary transformation matrix $V$ with a row of ones on top, $$ V = \begin{pmatrix}1&1&\cdots&1&1\\\\ & &U\\ &\end{pmatrix} $$ This can be accomplished, for example, by starting from the identity matrix, plugging in the row of ones on top, and applying Gram-Schmidt orthonormalization to obtain the matrix U. This, however, is not going to produce a "balanced" set of coordinates (whatever that means). Thus, I'm looking for approaches where $U$ is reasonably chosen, say as compact or sparse as possible, or with other suitable properties. This is also where I'd be interested what references in the literature did.