Improved floor_log2 function with intrinsics when available. Used De Brujin multiplication method otherwise.
Improved "count" for unique associative containers. Instead of calling tree's count just use find() != end() to avoid iterations as there is only one potential key.

Fixed some typos.