Changed genBasis() so that the norm of coefficient is consistent when change TBas