added wait.cpp for waiting a number of dt seconds before continuing the execution process