bug fixes for tensor factorization, add code that can generate large-scale synthetic tensor