Removed x86 assembly, replaced with fast portable algorithm.

Merkletrie.cpp uses inline assembly to calculate the log2 of a 32 bit integer.  This patch replaces it with portable C from http://aggregate.org/MAGIC/#Log2%20of%20an%20Integer which can actually be faster on platforms for which BSR is a microcode instruction.