Implementation and evaluation of a prediction algorithm for an autonomous vehicle