A generalization of Helling-Kim-Mennicke groups and manifolds