In ComputeMerkleRoot, the mutated flag is only set to true but never becomes false thereafter. Therefore all following tests after it became true are wasted computation. Fix this by doing the tests only while the flag is false.
While at that, drop the temporary local variable and use the provided parameter in place.
Signed-off-by: Zefir Kurtisi zefir.kurtisi@gmail.com