C++ generic tensorization of any STL-compliant container