DEV: Add myfunction for mean and resize (c++ compatibility with std::vector)