bug fixed in Tensor3::resize()
added resize in densevector