Math: function for base-2 logarithm.

Verbatim copy from Corrade, might be better to have it here too
(possibly some SIMD optimizations?).