a BF algorithm implement

a BF algorithm implement