import 'dart:math'; double log2(num x) => log(x) / log(2);