use log() instead of log2() to compile with vc2010