Output predictive algorithmic control: Precision tracking with application to terrain following