added iteration loops and toDo tasks in objectdetectionalgorithm.cpp