NxNxN cube algorithms (Full version)