add missing predecessor function

closes #352
Merge pull request #353 from stoeffel/predecessor

add missing predecessor function