Changed reccurrence relation to depend on the sequence to be predicted. Enforces a blank between repeated labels.