Distributed Tensor Contraction Framework