1 resp. 2 traversal implementation of basis(For) and kronecker