Parametrized Array implemented in C++