Reference implementation of dense tensor class in terms of STL's vector

Made reference implementation for rank-variable dense tensor class in terms of STL's vector.
Haven't implemented SlicedTensor (or SubArray), yet.