Dynamic programming techniques for sequential detection and tracking of moving targets in radar systems