don't use functor but a lambda
implement power2 for all types
Merge branch 'master' of github.com:jyujin/libefgy