An Object Detection Algorithm