The n-dimensional Stern–Brocot tree