Global controllability of multidimensional rigid body