fix_log2 implemented and tested