Issue #99: refactored tensor access
Issue #6, #99: matrix factorization now uses TensorDB data structure; weird oscillation when optimizing with AdaGrad