Vehicle detection and Motion tracking algorithm using OpenCV libraries in C++