bmax calculation
Merge branch 'master' of https://github.com/jhgoh/bex