Update bpe.c

added ratio specific code, bringing inline with personal files.