bpred_update, bpred_dir_lookup coded. (draft)