Added new functions for adding a bitset in a thread-safe way. I created a class which simply consists of 2 class members: 1) a lock and 2) a std::bitset.
Also, moved some helper functions to a separate new file (sql_bitmap.cc).
Nearly all instances of My_BITMAP are replaced now.