removed useless function
modified bit_flip function
speedup