move calc_sliding_attacks() in magic.cc
remove DeBruijn bitscan from magic.cc
use set_bit() in magic.cc