- added predict.c, moving the routines from util.c