changed the std::deque version into a std::vector version to keep things consistent and maybe easier