Merge pull request #12 from dcslin/tensor-impl

polish tensor implementation section