Linear reconfiguration of cube-style modular robots