Added rudimentary implementation of dense tensor.