trying out std::algorithm