Rename bp.m to bp_stoch.m and base implementation