for c++ algoritms experiments