Merge pull request #2 from naokin/devel

Devel
Implemented some parts of tensor concepts of TWG in DENSE layer