add math tool for log2.